package com.yuntsg.nnsfcp.test.pdf.asposepdf.examples.AsposePdfExamples.DocumentObject;

import com.aspose.pdf.Document;
import com.aspose.pdf.Font;

public class GetAllFonts {
    public static void main(String[] args) {
        // Initialize new document object
        Document doc = new Document("input.pdf");
        // Get all fonts from document
        Font[] fonts = doc.getFontUtilities().getAllFonts();
        for (Font f : fonts) {
            System.out.println(f.getFontName());
        }
    }
}
